package com.study.manage.dal;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.study.manage.domain.Album;
import com.study.manage.domain.enumm.LiveDieState;

public interface AlbumRepository extends PagingAndSortingRepository<Album, Long> {

    Page<Album> findByStateAndUserIdOrderByCreatedAtDesc(LiveDieState state, Long userId,
            Pageable pageable);

}
